package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.QueryRateRequest;
import com.chinaums.fsp.sdk.pgt.params.QueryRateResponse;
/**
 * 贴现利率查询
 * @author hty
 *
 */
public class DraftRateQueryTest extends BaseRequest{
	public void testDraftRateQueryRequest() throws Exception {

		PgtRequestFactory rf = FACTORY.factory();

		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.DRAFT_QUERY_RATE.getTransCode());

		QueryRateRequest data = QueryRateRequest.newBuilder()
				.setCertId("931310201876062778")
				.setBillType("")
				.build();
		
		 rf.transType(TransType.DRAFT_QUERY_RATE.getTransCode())
		 	.responseClass(QueryRateResponse.class)
		 	.data(data);
		ResponseDataWrapper rdw = rf.post();
		this.printToDraft(rdw);
	}

}
